<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class Shopwindow extends Model
{
	use HasDateTimeFormatter;
    public $timestamps = false;

    protected $fillable = [
        'user_id',
        'goods_id',
        'shelves',
        'added_time'
    ];

    public function goods()
    {
        return $this->belongsTo(Goods::class);
    }

    public function user()
    {
        return $this->belongsTo(User::class);
    }

}
